< previous page page_648 next page >

Page 648
0648-01.jpg
Figure 29.5
The completed sample Data Report is shown here.
Enhancing Your Data Reports
In the preceding section, you learned how easily you can create a report using the Data Report Designer. The sample report ended up looking rather rudimentary, but it got the job done. As you may have noticed while building the sample, you can make many changes to the report fields, such as the Font property, that require no additional explanation. These options work just as they would in any other custom control. Simply apply your best artistic talents to make the report look like you want. However, the Data Report also has a few special features, some of which will be covered in the following sections.
Predefined Report Fields
As you saw in the example, the DataReport object enables you to programmatically access properties of report controls from code. For example, if you want to add a field that displays the date the report was created, you can set a label's caption to Now before displaying the report. However, you can achieve the same result in a much simpler way. The Data Report includes some predefined placeholders, which allow you to include several dynamic elements on a report. These items are listed in Table 29.2.
note.gif The Title property is also used to identify the report to printer dialogs. square.gif

 
< previous page page_648 next page >